﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Langexplr.Abc;
using System.IO;
using System.Reflection;

namespace AbcLibrary.Tests
{
    [TestFixture]
    public class MetadataLoadingTests
    {
        [Test]
        public void BasicMetadataIdentification()
        {
            using (BinaryReader reader = new BinaryReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("AbcLibrary.Tests.files.metadatatest.abc")))
            {
                AbcFile file = AbcFile.ReadFrom(reader);


              //  System.Diagnostics.Debugger.Break();
                AvmClass aClass = AvmClass.Create(
                    file.Classes[0],
                    file.Instances[0],
                    file.Methods,
                    file.MethodBodies,
                    file.ConstantPool,new QualifiedName[]{});

                




            }
        }
    }
}
